
const state = {
        //周边
        rim:0,
        //配件
        parts:0,
        //搭配
        match:0,
        //智能
        smart:0,
        //家店
        family:0,
    }
const mutations= {
        FAMILY(state,value){
            state.family=value
        },
        SMART(state,value){
            state.smart=value
        },
        MATCH(state,value){
            state.match=value
        },
        PARTS(state,value){
            state.parts=value
        },
        RIM(state,value){
            state.rim=value
        }
    }
const actions= {
        familyJump(context,value){
            context.commit('FAMILY',value)
        },
        smartJump(context,value){
            context.commit('SMART',value)
        },
        matchJump(context,value){
            context.commit('MATCH',value)
        },
        partsJump(context,value){
            context.commit('PARTS',value)
        },
        rimJump(context,value){
            context.commit('RIM',value)
        },
    }
export default {
    namespaces:true,
    state,
    mutations,
    actions
}